<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div><script type="text/javascript">
	dobj=new Date();
	hour=dobj.getHours();
	minute=dobj.getMinutes();
	second=dobj.getSeconds();
	str=hour+':'+minute+':'+second;
document.write('<h1>'+str+'</h1>');

	</script>
	</div>
	<!-- <p><a href="javascript:" id='aid'>刷新</a></p> -->
	<p><button id='aid'>刷新</button></p>
</body>
<script type="text/javascript">
	aidobj=document.getElementById('aid');
	aidobj.onclick=function(){
		location.reload();

	}
	//reload刷新当前页面
</script>
</html>